package com.smmisia.common.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.Getter;

/**
 * 状态枚举
 * @author smmisia
 * @date 2023/7/18
 */
@Getter
public enum StatusEnum {


    NORMAL(0, "正常"),

    DISABLE(1, "禁用");

    @EnumValue
    private int code;

    private String desc;

    StatusEnum(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }
}
